package cn.wen233.srpc.basic.execute;

import cn.wen233.srpc.basic.model.Request;
import cn.wen233.srpc.basic.model.Response;

/**
 * Request Response执行器
 *
 * @author wenei
 * @date 2021-10-27 20:20
 */
public interface Executor {

    /**
     * 处理相关Request，返回Response
     * @param request 请求实体
     * @return 响应数据
     */
    Response execute(Request request);
}
